<?php
/**
 * minf - core library
 * modules/debug.php
 *
 * @author per function || minf.org team
 * @version 0.beta4
 * @copyright no,no,left, minf.org, 25 February, 2009
 * @license GPL
 * @package default
 **/

function debug_trace($ElementNo=-1) {
	$trace = debug_backtrace();
	if ($ElementNo==-1) return $trace;
	else return $trace[$ElementNo+1];
}

function get_caller_class($Depth) {
	$backtrace = debug_trace($Depth);
	return ucfirst(strtolower($backtrace['class']));
}

?>
